import { Loader2 } from 'lucide-react';

type LoadingProps = {
  size?: Size;
};

const sizeMap: Record<Size, number> = {
  sm: 24,
  md: 32,
  lg: 48,
};

export default function Loading({ size = 'md' }: LoadingProps) {
  return <Loader2 className="animate-spin" size={sizeMap[size]} />;
}
